:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  height: 100%;
  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
p{
  margin: 0;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.justify-start {
  display: flex;
  justify-content: flex-start;
}
.justify-center {
  display: flex;
  justify-content: center;
}

.justify-end {
  display: flex;
  justify-content: flex-end;
}
.justify-evenly {
  display: flex;
  justify-content: space-evenly;
}
.justify-around {
  display: flex;
  justify-content: space-around;
}
.justify-between {
  display: flex;
  justify-content: space-between;
}
.align-start {
  display: flex;
  align-items: flex-start;
}
.align-center {
  display: flex;
  align-items: center;
}
.align-end {
  display: flex;
  align-items: flex-end;
}
/* 全局滚动条样式（WebKit 内核浏览器） */
::-webkit-scrollbar {
  width: 8px;
  /* 纵向滚动条宽度 */
  height: 8px;
  /* 横向滚动条高度 */
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* 滚动条轨道背景色 */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  /* 滚动条滑块颜色 */
  border-radius: 4px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
  /* 鼠标悬停时滑块颜色 */
}

/* Firefox 浏览器支持（可选） */
* {
  scrollbar-width: thin;
  /* 可选值：auto | thin | none */
  scrollbar-color: #c1c1c1 #f1f1f1;
  /* 滑块颜色 轨道颜色 */
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  height: 100%;
  width: 100%;
}

#app {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.white-bg {
  background: #fff;

}

.cell-content {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/** 表格样式 **/
.table-box {

  .ant-spin-nested-loading,
  .ant-spin-container {
    height: 100%;
  }

  .ant-table {
    height: calc(100% - 64px);

    .ant-table-container {
      height: 100%;

      .ant-table-thead {
        height: 48px;

        .ant-table-cell {
          background: #F2F3F5;
          padding: 12px;
          font-family: PingFangSC, PingFang SC;
          font-weight: 500;
          font-size: 14px;
          color: #262626;
          line-height: 23px;
        }
      }

      .ant-table-body {
        height: calc(100% - 48px);
        border: 0;
        overflow: auto auto !important;

        .ant-table-row {
          background: #FFFFFF;

          &.table-striped td {
            background: #F7F8FA;
          }

          &:hover td {
            background: rgba(237, 243, 255, 1);
          }
        }

        .ant-table-cell {
          padding: 8px 12px;
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 14px;
          color: #262626;
          line-height: 24px;
          border: 0;

          .link {
            padding: 0 5px;
          }
        }
      }
    }
  }
}

/** 搜索表单样式 **/
.search-form-box {
  padding: 16px 0;
  box-shadow: inset 0px -1px 0px 0px #E6EBF1;
  margin-bottom: 16px;

  .ant-form {
    width: 100%;
  }

  .ant-form-item {
    margin-bottom: 0;

    @media screen and (max-width: 768px) {
      margin-bottom: 12px;
    }
  }

  .ant-picker {
    width: 100%;
  }

  .search-btn-box {
    display: flex;
    align-items: center;
  }

  .reset-btn {
    margin-left: 16px;
  }

  .expand-btn {
    font-size: 12px;
    margin-left: 12px;
    display: none;

    @media screen and (max-width: 768px) {
      display: flex;
    }
  }
}

/** 操作按钮样式 **/
.opt-button-box {
  padding-bottom: 16px;
  display: flex;

  .btn {
    display: flex;
    align-items: center;
    margin-right: 16px;

    .icon {
      width: 16px;
      height: 16px;
      margin-right: 2px;
    }
  }
}

/** 表格状态样式 **/
.cell-status-box {
  display: flex;
  align-items: center;

  &.is-active {
    .status-dot {
      background: #FF4D4F;
    }

    .status-text {
      color: #FF4D4F;
    }
  }

  .status-dot {
    width: 10px;
    height: 10px;
    background: #00C090;
    margin-right: 5px;
  }

  .status-text {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #262626;
    line-height: 20px;
    font-style: normal;
  }

}

/** 编辑页样式 **/
.option-wrapper {
  background-color: #fff;
  padding: 30px 0 12px;
  display: flex;
  justify-content: center;

  .option-main {
    width: 760px;

    @media screen and (max-width: 768px) {
      width: 100%;
    }

    .blue {
      color: #2776ff;
    }

    .option-column {
      margin-bottom: 14px;

      .column-title {
        display: flex;
        align-items: center;
        font-family: PingFangSC, PingFang SC;
        font-weight: 600;
        font-size: 16px;
        color: #262626;
        line-height: 22px;
        text-align: left;
        font-style: normal;
        margin-bottom: 24px;

        .red {
          margin-left: 6px;
          color: #FF4D4F;
        }

        &::before {
          content: "";
          width: 4px;
          height: 16px;
          margin-right: 6px;
          background: #2776ff;
        }
      }
      .column-form{
        margin-bottom: 12px;
        .column-form-title{
          margin-bottom: 12px;
        }
      }
      .column-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;

        .content-item {
          display: flex;
          justify-content: space-between;
          align-items: center;
          .ant-input-number{
            width: 100%;
          }
          div {
            flex: 1;
          }

          .delete-button {
            margin-left: 10px;
          }
        }
      }

      .column-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 0;
      }
    }
  }

  .table-inner {
    width: 100%;
  }

  .option-footer {
    display: flex;
    border-top: #e6ebf1 solid 1px;
    justify-content: center;
    padding-top: 12px;

    .opt-btn {
      width: 138px;
      height: 40px;
      border-radius: 4px;
      margin: 0 12px;
    }
  }
}

/** 详情页样式 **/
.detail-wrapper {
  background-color: #fff;
  padding: 30px 16px;

  .detail-main {
    .detail-column {
      margin-bottom: 14px;

      .column-title {
        display: flex;
        align-items: center;
        font-family: PingFangSC, PingFang SC;
        font-weight: 600;
        font-size: 16px;
        color: #262626;
        line-height: 22px;
        text-align: left;
        font-style: normal;
        margin-bottom: 24px;

        &::before {
          content: "";
          width: 4px;
          height: 16px;
          margin-right: 6px;
          background: #2776ff;
        }
      }

      .column-content {
        margin-bottom: 38px;

        :deep(.ant-image) {
          .ant-image-mask {
            display: none !important;
            opacity: 0 !important;
          }
        }

        :deep(.ant-descriptions-view) {
          border-radius: 0;

          .ant-descriptions-item-label {
            padding: 10px;
            background: #f2f3f5;
            font-family: PingFangSC, PingFang SC;
            font-weight: 500;
            font-size: 14px;
            color: #262626;
            line-height: 20px;
            text-align: center;
          }

          .ant-descriptions-item-content {
            padding: 10px 20px;
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            font-size: 14px;
            color: #262626;
            line-height: 20px;
            box-sizing: border-box;

            span {
              display: flex;
              align-items: center;
            }

            .icon {
              width: 16px;
              height: 16px;
              cursor: pointer;
              margin-left: 8px;
            }

            .detail-text {
              display: flex;
              align-items: center;

              .text-order {
                display: flex;
                align-items: center;
                .icon{
                  cursor: pointer;
                }
              }

              .line {
                width: 1px;
                height: 12px;
                background: #bec4ca;
                margin: 0 12px;
              }

              .text-status {
                display: flex;
                align-items: center;

                .orange {
                  color: #ff7024;
                }

                .green {
                  color: #00c090;
                }
              }
            }
          }
        }
      }
    }
  }

  .table-inner {
    width: 100%;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: #f9f9f9;
  }
}